

//
//  PayTableViewCell.m
//  1243
//
//  Created by apple on 16/7/7.
//  Copyright © 2016年 1243. All rights reserved.
//

#import "PayTableViewCell.h"

@implementation PayTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.payWay = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, 100, 40)];
        self.payWay.text = @"支付方式";
        
        UILabel *oneLine = [[UILabel alloc]initWithFrame:CGRectMake(0, 40, WIDTH, 1)];
        oneLine.backgroundColor = [UIColor lightGrayColor];
        
        self.moneyTitle = [[UILabel alloc]initWithFrame:CGRectMake(10, 40, 100, 40)];
        self.moneyTitle.text = @"商品总额:";
        
        self.moeny = [[UILabel alloc]initWithFrame:CGRectMake(WIDTH - 120, 40, 100, 40)];
        self.moeny.text = @"¥ 0.00";
        
        UILabel *twoLine = [[UILabel alloc]initWithFrame:CGRectMake(0, 80, WIDTH, 1)];
        twoLine.backgroundColor = [UIColor lightGrayColor];
        
        [self.contentView addSubview:self.payWay];
        [self.contentView addSubview:self.moneyTitle];
        [self.contentView addSubview:self.moeny];
        [self.contentView addSubview:oneLine];
        [self.contentView addSubview:twoLine];
        
    }
    return self;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
